package com.wanlian.dao;

import com.wanlian.entity.Question;
import com.wanlian.entity.QuestionAnswer;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;

import java.util.Map;

public interface QuestionAnswerDao extends GenericDao<QuestionAnswer> {


    /**
     * 通过页码和条件查询
     *
     * @param page
     * @param conditions
     * @return
     */
    ResultModel queryQuestionAnswer(Page page, Map<String, Object> conditions);

    long queryCountById(int id);

}
